﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using SharppiFlowEditor.models;
using System.Collections;
using SharppiFlowEditor.views;

namespace SharppiFlowEditor.controllers
{
    class SaveDocumentController : AbstractController
    {
        public SaveDocumentController(AppView appView, AppModel appModel)
        {
            Model = appModel;
            View = appView;
        }

        public void Save(string filePath)
        {
            Model.saveDocument(View.document.GraphDocument, filePath);
        }
    }
}
